package com.example.springboot.mapper;

import com.example.springboot.entity.Application;
import com.example.springboot.entity.Outstore;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OutstoreMapper {
    @Select("SELECT * from sys_outstore")
    List<Outstore> findAll();

    @Insert("insert into sys_outstore(device_id,situation,status,applier_id,dealer_id) " +
            "VALUES (#{deviceId},#{situation},#{status},#{applierId},#{dealerId});")
    int insert(Outstore outstore);

    int update(Outstore outstore);
}
